package com.sljy.hzk.entity;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * Created  on 2018/7/10 0010
 *
 * @author 唐开阔
 * @describe 保存到数据库的任务数据
 */
@Entity
public class DangerDatabaseEntity implements Serializable {
    public boolean isFinsh; //是否上传成功
    public String recordName; //记录名称
    public int  pId; //分区id
    public String posName;//分区名字
    public String time;//最后一个编辑时间
    public String dataJson;//json数据
    public String resultDate;
    public String userId;

    @PrimaryKey(autoGenerate = true)
    public int id;//自增id

    public DangerDatabaseEntity(boolean isFinsh, String recordName, int pId, String posName, String time, String dataJson, String resultDate, String userId) {
        this.isFinsh = isFinsh;
        this.recordName = recordName;
        this.pId = pId;
        this.posName = posName;
        this.time = time;
        this.dataJson = dataJson;
        this.resultDate = resultDate;
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isFinsh() {
        return isFinsh;
    }

    public void setFinsh(boolean finsh) {
        isFinsh = finsh;
    }

    public String getRecordName() {
        return recordName;
    }

    public void setRecordName(String recordName) {
        this.recordName = recordName;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public String getPosName() {
        return posName;
    }

    public void setPosName(String posName) {
        this.posName = posName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDataJson() {
        return dataJson;
    }

    public void setDataJson(String dataJson) {
        this.dataJson = dataJson;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getResultDate() {
        return resultDate;
    }

    public void setResultDate(String resultDate) {
        this.resultDate = resultDate;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
